package com.atguigu04.example.exer1;

/**
 * ClassName: PersonTest
 * Package: com.atguigu04.example.exer1
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/16 17:19
 * @Version 1.0
 */
public class PersonTest {
    public static void main(String[] args) {
        Person p1 = new Person();
        // 调用属性
        p1.name = "踩虚鲲";
        p1.age = 24;
        p1.gender = '男';
        // 调用方法
        p1.study();
        System.out.println(p1.showAge());
        p1.addAge(2);
        System.out.println(p1.showAge());

        Person p2 = new Person();
        System.out.println(p2.age);
        p2.addAge(23);
        System.out.println(p2.showAge());
    }
}
